Xbasic

FIELD.LINK_TABLE_GET Function

Syntax

Table_Name as C = Link_Table_get()

Description

Returns table of link if field is a linking key, blank if field is not a linking key.

Discussion

The .LINK_TABLE_GET() method returns the name of the table that the field links to.

Example

The following example shows that in the invoice set the customer_id field is a linking field that connects to the customer table. The date field is not a linking field.

dim tbl as P
dim fld as P
tbl = table.open("invoice.set")
fld = tbl.field_get("customer_id")
? fld.link_table_get()
= "CUSTOMER"
? fld.link_type_get()
= "First"
fld = tbl.field_get("date")
? fld.link_table_get()
= ""
? fld.link_type_get()
= ""

See Also